package com.qfedu.meidijiaju.service.impl;

import com.qfedu.meidijiaju.service.FollowService;
import com.qfedu.meidijiaju.entity.Follow;
import com.qfedu.meidijiaju.mapper.FollowMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FollowServiceImpl implements FollowService {

    @Autowired
    private FollowMapper followMapper;

    @Override
    public int queryCountFollowers(String uid) {
        return followMapper.queryCountFollowers(uid);
    }

    @Override
    public int queryCountFuns(String uid) {
        return followMapper.queryCountFuns(uid);
    }

    @Override
    public List<Follow> queryFuns(int uid) {
        return followMapper.queryFuns(uid);
    }

    @Override
    public List<Follow> queryFollowers(int uid) {
        return followMapper.queryFollowers(uid);
    }

    @Override
    public boolean addFollower(Follow follow) {
        return followMapper.addFollower(follow);
    }

    @Override
    public boolean deleteFollower(Follow follow) {
        return followMapper.deleteFollower(follow);
    }


}
